<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style type="text/css">
        /**{margin: 0; padding: 0;}*/
/*        div{
        	width: 200px; 
        	height: 100px; 
        	border: 2px solid red; 
        	float: left; 
        	margin-right: 20px; 
        	padding: 0 20px; 
        	text-align: center; 
        	line-height: 100px;
        }*/
        .box1 span{
        	display: block; 
        	width: 100%; 
        	height: 50px; 
        	line-height: 25px; 
        	margin-top: 25px;
        	background-color: #ccc;
        }
    </style>
</head>
<body>
<div class="box1"><span>CCS如果让文字垂直居中？如图，一行的时候我</span></div>
<div class="box2">CCS如果让文字垂直居中？</div>
</body>
</html>